package di.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import di.service.GreetingService;

public class TestGreeting {
	public static void main(String[] args) {
		// 1.Spring Container 객체 조회
		ApplicationContext context = new ClassPathXmlApplicationContext("di/config/applicationContext.xml");
		// 2. Bean(객체) 주입 받기
		GreetingService service = (GreetingService) context.getBean("greetingSevice");
		service.printKorGreeting("이순신");
	}
}
